package com.entity;

/**
 * @Author: 冷俊杰
 * @Description: TODO
 * @DateTime: 2022/6/2 10:01
 **/
public class User {
    private Integer id;//用户编号
    private String phone;//手机号码
    private String username;//用户名
    private String password;//密码
    private Integer state;//状态（1.是已登录，0.是还未登录，所有页面都不能点）

    public User(Integer id, String phone, String username, String password, Integer state) {
        this.id = id;
        this.phone = phone;
        this.username = username;
        this.password = password;
        this.state = state;
    }

    public User(String phone, String username, String password) {
        this.phone = phone;
        this.username = username;
        this.password = password;
    }

    public User(String phone, String username, String password, Integer state, Integer id) {
        this.phone = phone;
        this.username = username;
        this.password = password;
        this.state = state;
        this.id = id;
    }

    public User(String phone, String username, String password, Integer id) {
        this.phone = phone;
        this.username = username;
        this.password = password;
        this.id = id;
    }

    public User(Integer state, Integer id) {
        this.state = state;
        this.id = id;
    }

    public User() {
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", phone='" + phone + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
